import request from '@/utils/request'

// 查询武将技能列表
export function listPlayerskill(query) {
  return request({
    url: '/system/playerskill/list',
    method: 'get',
    params: query
  })
}

// 查询武将技能详细
export function getPlayerskill(id) {
  return request({
    url: '/system/playerskill/' + id,
    method: 'get'
  })
}

// 新增武将技能
export function addPlayerskill(data) {
  return request({
    url: '/system/playerskill',
    method: 'post',
    data: data
  })
}

// 修改武将技能
export function updatePlayerskill(data) {
  return request({
    url: '/system/playerskill',
    method: 'put',
    data: data
  })
}

// 删除武将技能
export function delPlayerskill(id) {
  return request({
    url: '/system/playerskill/' + id,
    method: 'delete'
  })
}
